//
//  IGUnPaidDrawingCell.m
//  jingdongfang
//
//  Created by boectoswteam on 2018/5/11.
//  Copyright © 2018年 BOE-SBG-CTO. All rights reserved.
//

#import "IGUnPaidDrawingCell.h"

@implementation IGUnPaidDrawingCell

- (void)awakeFromNib {
    [super awakeFromNib];
//    self.drawingName.font = [UIFont systemFontOfSize:15];
//    self.drawingAuthor.font = [UIFont systemFontOfSize:9];
    self.drawingPrice.font = [UIFont boldSystemFontOfSize:15];
//    self.drawingPrice.textColor = RGB(74, 169, 227);
//    self.drawingPrice.textAlignment = NSTextAlignmentRight;

    [self.drawingPrice mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(self.mas_right).offset(-15);
    }];
}

-(void)setModel:(IGMultipleBuySingleModel *)model{
    if (model) {
        self.drawingName.text = model.title;
        self.drawingAuthor.text = model.seller;
        self.drawingPrice.text= [NSString stringWithFormat:@"￥%@",model.price];
        [self.drawingThumb sd_setImageWithURL:[NSURL URLWithString:model.image]];
    }
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
